<?php

namespace Home\Dao;
use Think\Model\BaseDao;

class ChapterDao extends BaseDao{
	
	
	
	public function reOrder($exchangeList){
		$list = $exchangeList;
		$flag = true;
		foreach($list as $key => $value){
			$arr = explode(',',$value);
			$info = $this -> where(array('cha_id'=> $arr[0]))-> setField('cha_order',$arr[1]); 
			$flag = $info ? true:false;
		}
		
		return $flag;
	}
	
	
	
	
	
}
?>